package com.sam.mvp.ui.adapter;

import android.view.View;

import com.jess.arms.base.BaseHolder;
import com.jess.arms.base.DefaultAdapter;
import com.sam.R;
import com.sam.mvp.entity.User;
import com.sam.mvp.ui.holder.UserHolder;

import java.util.List;

public class MainAdapter extends DefaultAdapter<User> {

    public MainAdapter(List<User> infos) {
        super(infos);
    }

    @Override
    public BaseHolder<User> getHolder(View v, int viewType) {
        return new UserHolder(v);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.recycle_list;
    }
}
